package com.whu.helpluojia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whu.helpluojia.domain.Consult;
import com.whu.helpluojia.domain.MyPublish;
import com.whu.helpluojia.domain.User;

import java.util.Date;
import java.util.List;

/**
* @author 92948
* @description 针对表【consult】的数据库操作Service
*/
public interface ConsultService extends IService<Consult> {

    public void addConsult(Consult consult);

    public Consult queryConsultById(Long id);

    public List<Consult> selectAll();

    public List<Consult> getByDate(Date dateTime);

    public List<Consult> getByUser(Long userId);

    public List<Consult> getByType(String type);

    public List<Consult> getByContent(String content);

    public List<Consult> getByTitle(String title);
    public int deleteConsult(Long id);

    public List<User> getRecommend(String type);

    public List<MyPublish> getMyDetail(Long userId);

    public MyPublish getConsultDetail(Long id,Long userId);


}
